package com.zan.pattern.builder.demo2;

/**
 * @Author Zan
 * @Create 2024/4/25 16:37
 * @Description : TODO(请用一句话描述该类的功能)
 * @ClassName: Client
 */
public class Client {
    public static void main(String[] args) {
        // 创建手机对象，通过构建这对象获取手机对象
        Phone phone = new Phone.Builder()
                .cpu("intel")
                .mainboard("华硕")
                .memory("金士顿")
                .screen("三星")
                .build();
        System.out.println(phone);
    }
}
